package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户VIP状态对象 yx_user_vip_statuses
 * 
 * @author lingyu
 * @date 2024-04-03
 */
public class YxUserVipStatuses extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** vip等级id */
    @Excel(name = "vip等级id")
    private Long vipLevelId;

    /** vip到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "vip到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setVipLevelId(Long vipLevelId) 
    {
        this.vipLevelId = vipLevelId;
    }

    public Long getVipLevelId() 
    {
        return vipLevelId;
    }
    public void setExpirationDate(Date expirationDate) 
    {
        this.expirationDate = expirationDate;
    }

    public Date getExpirationDate() 
    {
        return expirationDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("vipLevelId", getVipLevelId())
            .append("expirationDate", getExpirationDate())
            .toString();
    }
}
